<!DOCTYPE html>
<html>
	<head>
		{{include file="../Common/head"}}
		<!--导航 end-->
		
		<!--个人中心部分开始-->
		<div id="myCenter_header">
			<div class="myCenter_header_box">
				<div class="investor_img">
					<a href="">
						<img src="./Public/Home/images/myCenter/11092564_avatar_big.jpg" alt="" />
					</a>
				</div>
							<!--investor投资者   details详细资料-->
				<div class="c_investor_details">
					<p><span id="timeMark">早上好</span>, <a href="">{{$_SESSION['uname']}}&nbsp;</a><span>拥抱积极的心态，改变现有的生活。</span></p>
					<ul class="c_investor_ul">
						<li>ID：<span id="ID">{{$_SESSION['userid']}}</span><i>|</i></li>
						<li>手机：<span id="mobile">13400338878</span><!-- <a href="/member_new/save.do?flag=2">修改</a>--><i>|</i> </li>  
						<li class="investor_email">邮箱：<span id="email">未绑定</span><a id="updateEmailA" href="">绑定</a><i>|</i></li>    
						<li>昵称：<input id="updateNickName" value="" maxlength="15" style="display: none;" type="text"><a href="" style="color:#fff;" id="nicknamemsg">Vicky</a><i>|</i></li>   
						<li>会员等级：<span id="rankName">幼儿园</span></li>    
					</ul>
				</div>
				<div class="c_headercon_right">
					<a title="已经连续签到3天" href="" class="c_personage_data">
						<span id="signLogo" title="已经连续签到3天">已签到</span>
						<input id="signTime" type="hidden">
						<input id="mid" type="hidden">
					</a>
					<a href="" class="c_login_code">
						<span>登录密码</span>
					</a>
					<a href="" class="c_real_name">
						<span>收货地址</span>
					</a>
					<!--  <a href="/member_new/save.do" class="c_deal_code">
						<span>实名认证</span>
					</a>-->
				</div>
			</div>
		</div>
				<!--会员资料-->
				<div id="content_box">
					<!--left-->
					<div class="c_left_side">
						<ul class="c_left_nav">
							<li>
								<a class="c_first_out_a c_click_li" href="{{U('center/index')}}"><i></i>我的账户</a>
							</li>
							<li>
								<a class="c_out_a" href="{{U('center/record')}}"><i class="c_out_i_two"></i>夺宝记录</a>
							</li>
							<li>
								<a class="c_out_a" href="{{U('center/address')}}"><i class="c_out_i_three"></i>收货地址</a>
							</li>
							<li>
								<a class="c_out_a" href=""><i class="c_out_i_four"></i>安全中心</a>
							</li>
						</ul>
					</div>
					<!--right-->
					<div class="c_right_main">
						<!--我的账户部分开始（里面包括订单）-->
						<div class="c_main_box">
							<ul class="c_main_income">
								<li class="c_money_type">
									<div>可用余额</div>
									<span>{{$userData[0]['sum']}}</span>
								</li>
								<li>
									<div>红包（个）</div>
									<span>0</span>
								</li>
								<li>
									<div>可用购物卡</div>
									<span>0</span>
								</li>
								<li>
									<div>积分</div>
									<span>400</span>
								</li>
								<li><a class="c_main_recharge" href="">充值</a></li>
							</ul>
							<!--订单-->
							<div class="b_record_box c_record_box">
								<!--start 购买记录模块标题-->
								<ul class="b_record_title">
									<li class="b_record_this"><a href="">进行中<span class="b_record_block">1</span></a></li>
									<li><a href="">即将揭晓<span class="b_record_block1">0</span></a></li>
									<li><a href="">已揭晓<span class="b_record_block2">2</span></a></li>
								</ul>
								<!--end 购买记录模块标题-->
								<!--购买记录模块内容开始-->
								<div class="b_record_buy">
									<div class="b_choose" style="margin:15px;">
										<ul class="b_choose_day">                                    
											<li class="b_choose_this" onclick="setTime(0)">全部</li>
											<li onclick="setTime(1)">今天</li>
											<li onclick="setTime(2)">本周</li>
											<li onclick="setTime(3)">本月</li>
											<li onclick="setTime(4)">最近三个月</li>
										</ul>
									</div>
									<div class="b_record_table">
										<table id="cloudTable">
											<tbody>
												<tr class="b_part_title">
													<th class="b_th1">商品图片</th>
													<th class="b_th2">商品名称</th>
													<th class="b_th3">夺宝状态</th>
													<th class="b_th4">参与人次</th>
													<th class="b_th5">夺宝号码</th>
													<th class="b_th6">操作</th>
												</tr>
												{{foreach from="$recordData" value="$v"}}
												<tr class="">
													<td>
														<a href="">
															<img style="width: 92px;height: 92px;padding: 10px;" src="{{$v['pic']}}" alt="" />
					 									</a>
													</td>
													<td id="div_0">
														<div class="b_goods_name">
															<span>
																<a href="">(第4期) {{$v['gname']}}</a>
															</span>
															<b class="b_all_require">总需：{{$v['price']}}人次</b>
															<div class="b_progress_bar">
																<em style="width:86.94551591128254%;"></em>
															</div>
															<dl class="b_progress">
																<dd class="b_progress_left"><span>0</span><b>已参与</b></dd>
																<dd class="b_progress_center"><span>{{$v['price']}}</span><b>总需人次</b></dd>
																<dd class="b_progress_right"><span>0</span><b>剩余</b></dd>
															</dl>
														</div>
														<b style="color:#888;" class="time0">夺宝时间：{{date('Y-m-d H:i:s',$v['pay_time'])}}</b>
													</td>
													<td class="b_color">正在进行...</td>
													<td class="b_renci"><tt class="times0">{{$v['total']}}</tt>人次<a href="" class="b_follow_buy">跟买</a></td>
													<td>
														
														<?php 
														//把随机数的字符串转换为数组
															$numArr = explode(',', $v['random_num']);
															//sp($numArr);
														 ?>
														<div class="b_cloud_code">
															{{foreach from="$numArr" value="$vv"}}
															<i>{{$vv}} </i>
															{{endforeach}}
															<span class="code0" style="display:none">["10041595","10051385","10074588","10021821","10011445","10079162","10051962","10032558","10074572","10015850"]</span>
															<a href="" onclick="more(0);" class="b_periods_num">查看更多&gt;</a>
														</div>
													</td>
													<td><tt id="refund_undefined"><a href="">查看详情&gt;</a></tt></td>
												</tr>
												{{endforeach}}
												
											</tbody>
										</table>
									</div>
								</div>
								<!--购买记录模块内容结束-->
								<center>
								  	<ul class="pagination" style="background: #16a085;">
								   	{{$page}}
								  	</ul>
								</center>
							</div>
						</div>
						<!--我的账户部分结束-->
					</div>
				</div>
			
		<!--个人中心部分结束-->
		
		<!--最底部部分开始-->
		<div id="footer_in_box">山西云购电子商务有限公司 晋ICP备15005633号-1</div>
	</body>
</html>
